home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / inskey.zip / INSKEY.DOC < prev    next >
Text File  |  1991-11-18  |  2KB  |  49 lines

  1.  
  2.                             INSKEY.DOC
  3.  
  4.  
  5. INSKEY.COM is a very small utility that allows a program to run,
  6. (or not run) depending on whether or not the insert is toggled on
  7. (or off).  It is useful when you want to load TSR's or run
  8. programs from a batch file on a conditional basis.  It is
  9. particularly useful in AUTOEXEC.BAT to go/not go into windows, or
  10. to load/not load a TSR.  INSKEY.COM returns the ERRORLEVEL 128 if
  11. the insert has been toggled on.
  12.  
  13. Use INSKEY.COM in a batch file as below :
  14.  
  15.      INSKEY
  16.      IF ERRORLEVEL 128 Win
  17.  
  18. The above sequence will cause the batch file to execute the Win
  19. command (and thus run Windows) only if the Insert key was toggled
  20. On before running the batch file.  Thus, if this was the
  21. AUTOEXEC.BAT file, and you want to run windows on boot-up, press
  22. the insert key while the computer is booting.
  23.  
  24. If you prefer, the insert key can be replaced by another key by
  25. altering the INSKEY.SCR file to create a different COM file.
  26. Change the 128 in line 5 ( AND AL,128 ) in the .SCR file to
  27. another code given in the table below, and re-compile to generate
  28. another .COM file.
  29.  
  30.      KEY                   CODE
  31.      ___                   ____
  32.      Right Shift             1          (Hold key down)
  33.      Left Shift              2          (Hold key down)
  34.      Ctrl                    4          (Hold key down)
  35.      Alt                     8          (Hold key down)
  36.      Scroll Lock            16          (Toggle)
  37.      Num Lock               32          (Toggle)
  38.      Caps Lock              64          (Toggle)
  39.      Insert                128          (Toggle)
  40.  
  41.  
  42. Run the .SCR file through the dos utility DEBUG, by giving the
  43. command DEBUG<INSKEY.SCR, to generate a new INSKEY.COM.  You may
  44. give INSKEY.COM another relevant name, like RSHIFT.COM for Right
  45. Shift.
  46.  
  47. Ignore the error if you recompile the INSKEY.SCR code using the AND AL,128.
  48.  
  49.